home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / complib / clantp.z / clantp
Text File  |  1998-10-30  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCLLLLAAAANNNNTTTTPPPP((((3333FFFF))))                                                          CCCCLLLLAAAANNNNTTTTPPPP((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CLANTP - return the value of the one norm, or the Frobenius norm, or the
  10.      infinity norm, or the element of largest absolute value of a triangular
  11.      matrix A, supplied in packed form
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      REAL FUNCTION CLANTP( NORM, UPLO, DIAG, N, AP, WORK )
  15.  
  16.          CHARACTER DIAG, NORM, UPLO
  17.  
  18.          INTEGER   N
  19.  
  20.          REAL      WORK( * )
  21.  
  22.          COMPLEX   AP( * )
  23.  
  24. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  25.      CLANTP  returns the value of the one norm,  or the Frobenius norm, or the
  26.      infinity norm,  or the  element of  largest absolute value  of a
  27.      triangular matrix A, supplied in packed form.
  28.  
  29.  
  30. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  31.      CLANTP returns the value
  32.  
  33.         CLANTP = ( max(abs(A(i,j))), NORM = 'M' or 'm'
  34.                  (
  35.                  ( norm1(A),         NORM = '1', 'O' or 'o'
  36.                  (
  37.                  ( normI(A),         NORM = 'I' or 'i'
  38.                  (
  39.                  ( normF(A),         NORM = 'F', 'f', 'E' or 'e'
  40.  
  41.      where  norm1  denotes the  one norm of a matrix (maximum column sum),
  42.      normI  denotes the  infinity norm  of a matrix  (maximum row sum) and
  43.      normF  denotes the  Frobenius norm of a matrix (square root of sum of
  44.      squares).  Note that  max(abs(A(i,j)))  is not a  matrix norm.
  45.  
  46.  
  47. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  48.      NORM    (input) CHARACTER*1
  49.              Specifies the value to be returned in CLANTP as described above.
  50.  
  51.      UPLO    (input) CHARACTER*1
  52.              Specifies whether the matrix A is upper or lower triangular.  =
  53.              'U':  Upper triangular
  54.              = 'L':  Lower triangular
  55.  
  56.      DIAG    (input) CHARACTER*1
  57.              Specifies whether or not the matrix A is unit triangular.  = 'N':
  58.              Non-unit triangular
  59.              = 'U':  Unit triangular
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCLLLLAAAANNNNTTTTPPPP((((3333FFFF))))                                                          CCCCLLLLAAAANNNNTTTTPPPP((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      N       (input) INTEGER
  75.              The order of the matrix A.  N >= 0.  When N = 0, CLANTP is set to
  76.              zero.
  77.  
  78.      AP      (input) COMPLEX array, dimension (N*(N+1)/2)
  79.              The upper or lower triangular matrix A, packed columnwise in a
  80.              linear array.  The j-th column of A is stored in the array AP as
  81.              follows:  if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
  82.              if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.  Note
  83.              that when DIAG = 'U', the elements of the array AP corresponding
  84.              to the diagonal elements of the matrix A are not referenced, but
  85.              are assumed to be one.
  86.  
  87.      WORK    (workspace) REAL array, dimension (LWORK),
  88.              where LWORK >= N when NORM = 'I'; otherwise, WORK is not
  89.              referenced.
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.